import axios from 'axios';


export default {
    methods: {
        //示例接口，天气预报
        getWeather(cityID) {
            const url = `/api/weather/city/${cityID}`  //注意写法， 不是双引号
            console.log(url)
            axios.get(url, "get").then(response => {
                //this.userData = response.data;
                console.log(response.data)
            }).catch(error => {
                console.error('There was an error!', error);
            });
        },

        //返回所有的商品数据
        getProductList(){

            
        }

    },
}
